package cn.alcatraz.system.service.impl;

import cn.alcatraz.basic.service.impl.BaseServiceImpl;
import cn.alcatraz.system.domain.SystemDictionaryType;
import cn.alcatraz.system.mapper.SystemDictionaryDetailMapper;
import cn.alcatraz.system.mapper.SystemDictionaryTypeMapper;
import cn.alcatraz.system.service.ISystemDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SystemDictionaryTypeServiceImpl extends BaseServiceImpl<SystemDictionaryType> implements ISystemDictionaryTypeService {

    @Autowired
    private SystemDictionaryTypeMapper systemDictionaryTypeMapper;

    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;

    @Override
    public void DeleteById(Long id) {
        systemDictionaryTypeMapper.DeleteById(id);
        systemDictionaryDetailMapper.DeleteByTypeId(id);
    }
}
